| Conditions | 1 |
| Total Lines | 6 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { Controller, Get, Inject, UseGuards } from '@nestjs/common'; |
||
| 22 | |||
| 23 | @Get('me') |
||
| 24 | @Roles(UserRole.PHOTOGRAPHER, UserRole.DIRECTOR) |
||
| 25 | @ApiOperation({ summary: 'Get current user' }) |
||
| 26 | public async index(@LoggedUser() { id }: UserAuthView): Promise<UserView> { |
||
| 27 | return await this.queryBus.execute(new GetUserByIdQuery(id)); |
||
| 28 | } |
||
| 30 |